<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-title" content="XYShop">
        <meta name="apple-mobile-web-app-status-bar-style" content="default">
        <link rel="apple-touch-icon" type="image/x-icon" href="logo.png">
		<link rel="manifest" href="/manifest.json">
		<link rel="stylesheet" href="<%= BASE_URL %>static/index.css" />
		<script type="text/javascript">
			if (navigator.serviceWorker) {
			    navigator.serviceWorker.register('service-worker.js').then(function(registration){
					console.log('service worker 注册成功');
			    }).catch(function(err){
			        console.log('servcie worker 注册失败');
			    });
			}
		</script>
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
        <title>
            <%= htmlWebpackPlugin.options.title %>
        </title>
        <script>
            document.addEventListener('DOMContentLoaded', function() {
                document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
            })
        </script>
		<script>
		    // 禁用ios缩放
		    window.onload=function () {
		        document.addEventListener('touchstart',function (event) {
		          if(event.touches.length>1){
		            event.preventDefault();
		          }
		        });
		        var lastTouchEnd=0;
		        document.addEventListener('touchend',function (event) {
		          var now=(new Date()).getTime();
		          if(now-lastTouchEnd<=300){
		            event.preventDefault();
		          }
		          lastTouchEnd=now;
		        },false);
		        document.addEventListener('gesturestart', function (event) {
		          event.preventDefault();
		        });
		    }
		</script>
		<script src="//res2.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
		<script src="//cdn.bootcss.com/vConsole/3.3.4/vconsole.min.js"></script>
        
    </head>
    <body>
        <noscript>
            <strong>Please enable JavaScript to continue.</strong>
        </noscript>
        <div id="app"></div>
        <!-- built files will be auto injected -->
    </body>
</html>
